"""
Image Compare Tool Test

12/20/2008
"""

import ImageCompare

image1 = 'C:/Lib/JointTrack/branches/bryan/Images/cone.png'
image2 = 'C:/Lib/JointTrack/branches/bryan/Images/cone.png'
image3 = 'C:/Lib/JointTrack/branches/bryan/Images/junk.png'

#return 0 if they match, 1 otherwise.
#The first pair should match, the second pair should not.
comp1 = ImageCompare.compare(image1,image2)
comp2 = ImageCompare.compare(image1,image3)

#Test for positive match
assert comp1==0
assert comp2==1

if comp1==0 and comp2==1:
    print "Test Success!"
else:
    print "Test Failure!"